Repository navigation
fix(cli): route reload, restart and pull-to-refresh intents to existing commands - #5094
Conversation
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…ng commands An agent that wanted to pull to refresh, restart an app, or load new JavaScript spent a help read or a failing command on it in every measured run. The skill routing card names scroll refresh, open <app> --relaunch and metro reload, and tells the agent to run one agent-device call per command when its host allows commands by name, so a chained or quoted call does not fall into a sandbox that cannot reach the daemon. The unknown-command suggestion map gains reload beside restart, and an entry can carry a second shape so one hint names both working commands instead of the nearest-name match's unrelated record. A help read for a name with a confident suggestion prints a one-line pointer instead of the root decision card, and help gestures leads with pull to refresh.
7f9db43 to
24201c5
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 24201c5. The verdict and the full list are in the summary comment.
… candidates A one-line pointer replaces the card only when the guess names one command (a curated alias or a single nearest name); a multi-candidate guess or no guess keeps the card that shows the candidates' shapes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
No blocking problems were found at ec00c27. Not blocking: these can be taken or left: run each The sandbox sentence wording thread still applies. The test format thread does not apply, because the exact suggestion format stays pinned for All 32 checks pass. Not verified here: the CLI and tests were not run at the PR head, and output byte counts rest on the tests and CI. Host sandbox allow-rule behavior for chained or quoted-path calls was not checked. The diff was compared with merge base c8555bd, not with current base 3fd66c2. Nothing from this review needs to happen before merge. |
…e miss the call Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
No blocking problems were found at 8ba738b. Since the earlier review, the setup sentence and the suggestion test were fixed. Two threads no longer apply and can be resolved: setup sentence, because the failure condition is no longer reversed, and test assertion, because the test now requires the All 22 checks pass. There are no conflicts with main at 3fd66c2. Not verified here: the CLI and tests were not run at this commit, so test results rest on CI. Host sandbox allow-rule behavior for chained or quoted-path calls was not checked, and no device run was done for these help, hint, skill and docs text changes. Nothing from this review needs to happen before merge. |
Summary
An agent that wanted to pull to refresh, restart an app, or load new JavaScript spent a help read or a failing command on it in every measured run. Each answer now sits with its owner.
The skill routing card names
scroll refresh,open <app> --relaunch, andmetro reload, and says: when your host allowsagent-deviceby command name, run one call per command. A chained or quoted-path call misses that rule and runs sandboxed, away from the daemon.src/cli/parser/command-suggestions.tsowns unknown-command hints.reloadjoinsrestartin its curated map, and an entry can carry a second shape, so one hint names both working commands;reloadused to fall through to the nearest-name match and suggest the unrelatedrecord.usageForUnknownCommandowns what a help read prints for an unknown name: a one-line pointer when a suggestion already answered it, the root card otherwise.help gesturesnow leads with pull to refresh;help scrollalready did.Before / after
agent-device reload --helpDid you mean record?plus the root card, about 3.1 KB.Did you mean open <app> --relaunch (or metro reload)?plus one pointer line, 213 bytes.agent-device help gestures: pull to refresh moved from a mid-topic line to the opening sentence.Validation
At 24201c5:
typecheck,format,lint,build,fallow,layering,agent-guidance,command-docs,doc-prose,doc-links, plusvitest --project unit-coreoversrc,scripts, andtest: 20599 passed, 9 skipped. New tests cover the hint, its byte bound, short help output, and first-line mentions. CI owns the rest.